#include "core/mesh.hpp"

Mesh::Mesh(const int nv, const int nt, Point* vs, int* ts) : nverts(nv), ntris(nt), verts(vs), inds(ts)
{
  tris = new Triangle[ntris];
  for(int i=0; i<ntris; i++)
    {
      tris[i] = Triangle(this,i);
    }
}

Mesh::~Mesh()
{
  delete[] verts;
  delete[] inds;
  delete[] tris;
}
